home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET
/
BCI NET Dec 94.iso
/
archives
/
applications
/
wp
/
ged11.lha
/
Install
/
data
/
main
/
GoldED
/
ARexx
/
dmake.ged
< prev
next >
Wrap
Text File
|
1993-07-25
|
2KB
|
72 lines
/* $VER: 0.9, ©1993 Dietmar Eilert. Call dmake utility (DICE) */
OPTIONS RESULTS /* enable return codes */
if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT QUIET' /* lock GUI, gain access */
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------- INSERT YOUR CODE HERE: -------------------- */
'QUERY CAT'
isGerman = (result = "deutsch")
'QUERY MODIFY'
if (result = 'TRUE') then do
if (isGerman) then
'REQUEST BODY="Datei wurde verändert. Speichern ?" BUTTON="speichern|abbrechen"'
else
'REQUEST BODY="File has been changed. Save it ?" BUTTON="SAVE|CANCEL"'
if (result = 1) then
'SAVE ALL'
end
'QUERY PATH VAR PATH'
if (right(path, 1) ~= ':') then
path = path || '/'
if (exists(path || 'dmakefile')) then
do
shell
pragma('D', path)
'dmake'
shell
if (isGerman) then
say "Fertig (RETURN drücken)."
else
say "done (press RETURN)."
pull dummy
end
else do
if (isGerman) then
'REQUEST BODY="Kein Makefile in ' || path || ' ?!"'
else
'REQUEST BODY="No makefile in ' || path || ' ?!"'
end
/* ---------------------------- END OF YOUR CODE ----------------------- */
'UNLOCK' /* VERY important: unlock GUI */
EXIT
SYNTAX:
SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
'UNLOCK'
EXIT